package tostring;

public class ToStringTestMain {
	
	public static void main(String[] args) {
		
		Object o1 = new Object();
		Object o2 = new Object();
		
		System.out.println("o1 == o2: " + (o1 == o2));	// false
		System.out.println("o1.equals(o2): " + o1.equals(o2));	// false
		o1.toString();
		System.out.println();
		
		String s1 = new String("Hello World");
		String s2 = new String("Hello World");
		
		System.out.println("s1 == s2: " + (s1 == s2));
		System.out.println("s1.equals(s2): " + s1.equals(s2));
		
		
		
	}
	
}
